//package com.example.restaurant.netty;
//
//import io.netty.channel.ChannelInitializer;
//import io.netty.channel.socket.SocketChannel;
//import org.springframework.stereotype.Component;
//
//import javax.annotation.Resource;
//
//
///**
// * @BelongsProject: chat
// * @BelongsPackage: com.example.restaurant.netty
// * @Author: chenAng
// * @CreateTime: 2023-12-08  10:50
// * @Version: 1.0
// */
//@Component
//public class ChildChannelHandler extends ChannelInitializer<SocketChannel> {
//    @Resource
//    private DiscardServerHandler discardServerHandler;
//
//    @Override
//    public void initChannel(SocketChannel socketChannel) throws Exception {
//        socketChannel.pipeline().addLast(discardServerHandler);
//    }
//}
